﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProgramShortcuts.Components.Services
{
	public class ConsoleClearScreen: IClearScreen
	{

		#region IClearScreen Members

		public void ClearCurrentLine()
		{
			Console.SetCursorPosition( 0, Console.CursorTop );
			for ( int character = 0; character < Console.BufferWidth - 1; character++ )
			{
				Console.Write( ' ' );
			}
			Console.SetCursorPosition( 0, Console.CursorTop );
		}

		#endregion
	}
}
